package Clases;

import java.sql.SQLException;

import BasedeDatos.*;

public class Usuario {
	public int guid;
	public String nuser;
	public String user;
	public String pass;
	public String email;
	public int nivel;
	public int disponibilidad;
	public String competencia;
	
	
	public Usuario(){
		this.guid = 0;
		this.nuser = "";
		this.user = "";
		this.pass = "";
		this.email = "";
		this.nivel = 0;
	}
	public Usuario(int guid,String nuser,String user,String pass,String email,int nivel,int disponibilidad,String competencia){
		this.guid = guid;
		this.nuser = nuser;
		this.user = user;
		this.pass = pass;
		this.email = email;
		this.nivel = nivel;
		this.disponibilidad = disponibilidad;
		this.competencia = competencia;
	}
	
	public int getGuid(){
		return this.guid;
	}
	
	public String getNUser(){
		return this.nuser;
	}
	
	public String getUser(){
		return this.user;
	}
	
	public String getPass(){
		return this.pass;
	}
	
	public String getEmail(){
		return this.email;
	}
	
	public int getNivel(){
		return this.nivel;
	}
	
	public void setGuid(int guid){
		this.guid = guid;
	}
	
	public void setNUser(String nuser){
		this.nuser = nuser;
	}
	
	public void setUser(String user){
		this.user = user;
	}
	
	public void setPass(String pass){
		this.pass = pass;
	}
	
	public void setEmail(String email){
		this.email = email;
	}
	
	public void setNivel(int nivel){
		this.nivel = nivel;
	}
	
	public int getDisponibilidad() {
		return disponibilidad;
	}
	public void setDisponibilidad(int disponibilidad) {
		this.disponibilidad = disponibilidad;
	}
	public String getCompetencia() {
		return competencia;
	}
	public void setCompetencia(String competencia) {
		this.competencia = competencia;
	}
	
	public String toString(){
		String s = "Usuario: "+ this.user;
		return s;
	}
	
}
